﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SmartPaginator.Extensions
{
    public static class TableExtensions
    {
        #region HeaderRowCount Attached Property

        public static readonly DependencyProperty HeaderRowCountProperty = DependencyProperty.RegisterAttached(
            "HeaderRowCount",
            typeof(int),
            typeof(ListExtensions),
            new FrameworkPropertyMetadata(0));

        public static int GetHeaderRowCount(DependencyObject element)
        {
            return (int)element.GetValue(HeaderRowCountProperty);
        }

        public static void SetHeaderRowCount(DependencyObject element, int value)
        {
            element.SetValue(HeaderRowCountProperty, value);
        }

        #endregion
    }
}
